package code.c08;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 12:04
 * @package code.c08
 * @description 文件说明
 */

public class CollectionTest {
    public static void main(String[] args) {
        Collection<Object> objects = new ArrayList<>();

        objects.add("fds");
        objects.add("fdsa");
        objects.add("ad");

        // 整体输出
        System.out.println(objects);

        // 迭代器输出
        for (Object object : objects) {
            System.out.println(object);
        }
    }
}
